﻿@* Ui层项目 - 异常组件文件 *@
@using Util.Generators.Helpers
@model Util.Generators.Contexts.EntityContext
@{
    var service = new GenerateService( Model );
    Model.Output.FileNameNoExtension = "exception.component";
    Model.Output.Extension = ".ts";
    Model.Output.RelativeRootPath = $"src/{service.GetUiProjectName()}/ClientApp/src/app/routes/exception";
}
import { ChangeDetectionStrategy, Component } from '@@angular/core';
import { ActivatedRoute } from '@@angular/router';
import { ExceptionType } from '@@delon/abc/exception';

@@Component({
    selector: 'app-exception',
    template: ` <exception [type]="type" style="min-height: 500px; height: 80%;"> </exception> `,
    changeDetection: ChangeDetectionStrategy.OnPush
})
export class ExceptionComponent {
    get type(): ExceptionType {
        return this.route.snapshot.data['type'];
    }

    constructor(private route: ActivatedRoute) {
    }
}
